From f9e06590a9a59b44217ceda3f82ed768f096b150 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 13 Oct 2008 15:45:11 +0000 Subject: [PATCH] Firmwarehotplug actually requires a sdcc that supports some targets, Debian lenny has named this sdcc version sdcc-nf, but most other distros, including etch will be able to build this package using their stock sdcc SVN-Revision: 12974 --- utils/firmwarehotplug/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/utils/firmwarehotplug/Makefile b/utils/firmwarehotplug/Makefile index ecde07361..16e5c9774 100644 --- a/utils/firmwarehotplug/Makefile +++ b/utils/firmwarehotplug/Makefile @@ -50,6 +50,16 @@ endef $(eval $(call BuildPackage,firmwarehotplug)) -$(eval $(call RequireCommand,sdcc-nf, \ +define Require/working-sdcc + sdcc -v | awk '($$$$1 == "SDCC") && ($$$$3 == "mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08") { print "ok" }' | grep ok > /dev/null +endef + +$(eval $(call RequireCommand,sdcc, \ $(PKG_NAME) requires the SDCC Cross Compiler (sdcc). \ )) + +$(eval $(call Require,working-sdcc, \ + $(PKG_NAME) requires a SDCC Cross Compiler (sdcc) that supports the following targets : \ + mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08. You might consider \ + installing the non-free version. \ +)) -- 2.30.2